package world.criver.h50529.application;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import world.criver.crkey.crKey;
import world.criver.h50529.data.daData;
import world.criver.h50529.data.daFxml;
import world.criver.h50529.data.daMaterial;
import world.criver.h50529.function.funFiles;
import world.criver.h50529.function.funTray;

import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class appMaster extends Application {
    public appMaster()  {
        daFxml.ini();
        new funTray().add();
        funFiles ff=new funFiles();
        ff.readEvents();
        ff.readListens();
        ff.loadTransmit();
    }
    @Override
    public void start(Stage stage) throws IOException {
        stage.setTitle("拓思通IO驱动");
        Scene sc=new Scene(daFxml.master);
        sc.setFill(null);
        stage.setScene(sc);
        stage.initStyle(StageStyle.TRANSPARENT);
        stage.getIcons().add(daMaterial.logo_128x128);
//        stage.show();
        daData.master=stage;
//        new crKey("h50529");
    }

    public static void _main(String[] args) {
        launch();
    }
}